package com.project.internship.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.internship.entity.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.internship.vo.StudentDeptMajorClassVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-04-06
 */
@Repository
public interface StudentMapper extends BaseMapper<Student> {

    IPage<Student> getAllStudents(Page<Student> page, @Param("departmentId") Integer departmentId , @Param("keyword") String keyword);

    List<Student> getStudents(Integer id);
}
